﻿@model VideoCache.Server.ViewModel.UserModel
@{
    ViewBag.Title = "注册通行证账号";
    Layout = "/Views/Shared/_User.cshtml";
}
@section css
{
    <style type="text/css">
        #body
        {
            margin-left: auto;
            margin-right: auto;
            width: 960px;
        }
        #regcontent
        {
            margin-left: auto;
            margin-right: auto;
            width: 700px;
        }
    </style>
}
@section script
{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
<div id="body">
<h2>@ViewBag.Title</h2>
<div id="regcontent">
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <div class="unit">
        <div class="editor-label">
            @Html.LabelFor(model => model.UserName)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.UserName, new { @class = "input" })
            @Html.ValidationMessageFor(model => model.UserName)
        </div>
    </div>
    <div class="unit">
        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(model => model.Password, new { @class = "input" })
            @Html.ValidationMessageFor(model => model.Password)
        </div>
    </div>
    <div class="unit">
        <div class="editor-label">
            确认密码
        </div>
        <div class="editor-field">
            @Html.PasswordFor(model => model.Password, new { @class = "input" })
            @Html.ValidationMessageFor(model => model.Password)
        </div>
    </div>
    <div class="unit">
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Email, new { @class = "input" })
            @Html.ValidationMessageFor(model => model.Email)
        </div>
    </div>
    <div class="unit">
        <div class="editor-label">
            @Html.LabelFor(model => model.MobilePhone)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.MobilePhone, new { @class = "input" })
            @Html.ValidationMessageFor(model => model.MobilePhone)
        </div>
    </div>
    <p>
    <div class="unit">
        <label>
        </label>
        <button type="submit">同意服务条款，提交注册信息</button>
    </div>
    </p>
}
</div>
</div>